home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #2 / Amiga Plus CD - 1999 - No. 2.iso / System-Boost / Profi Tools / sysspeed / Install < prev    next >
Text File  |  1998-07-30  |  8KB  |  454 lines

  1.  
  2. ;================================= ENGLISH ==================================
  3.  
  4. (set languages-default 1)
  5.  
  6. (set #bad-kick "You must be using Kickstart 2.04+ to install SysSpeed")
  7.  
  8. (set #copy-main "Copying SysSpeed...")
  9.  
  10. (set #copy-datas "Copying SysSpeed datafiles...")
  11.  
  12. (set #copy-doc "Copying Documentation...")
  13.  
  14. (set #copy-powerpacker-library "Copying powerpacker.library to Libs: ...")
  15.  
  16. (set #copy-boards-library "Copying boards.library to Libs: ...")
  17.  
  18. (set #copy-xpkmaster-library "Copying xkpmaster.library to Libs: ...")
  19.  
  20. (set #copy-shri-library "Copying xpkSHRI.library to Libs:Compressors/ ...")
  21.  
  22. (set #copy-fonts "Copying XEN Font to Fonts: ...")
  23.  
  24. (set #install-select
  25.     (cat
  26.         "Please select the different parts of SysSpeed that you"
  27.         " would like to install:"
  28.     )
  29. )
  30.  
  31. (set #install-select-help
  32.     (cat
  33.         "SysSpeed: The Ultimate Speedtester...\n"
  34.     )
  35. )
  36.  
  37. (set #doc-select
  38.     (cat
  39.         "Please select your favourite documentation that you would"
  40.         " like to install:"
  41.     )
  42. )
  43.  
  44. (set #doc-select-help
  45.     (cat
  46.         "Select you favourite documentation!"
  47.     )
  48. )
  49.  
  50. (set #languages-select "\nWhich languages should be installed?")
  51.  
  52. (set #languages-select-help
  53.     (cat
  54.         "Please select your favourite language that should be"
  55.         " copied to you Locale: directory?"
  56.     )
  57. )
  58.  
  59. (set #item-main "SysSpeed Mainprogram")
  60.  
  61. (set #item-datas "SysSpeedDatas")
  62.  
  63. (set #item-doc "Documentation")
  64.  
  65. (set #item-locale "Locale")
  66.  
  67. (set #item-libraries "Libraries")
  68.  
  69. (set #item-fonts "XEN Font")
  70.  
  71. (set #where-main "Where would you like to install the SysSpeed mainprogram?")
  72.  
  73. (set #where-main-help
  74.     (cat
  75.         "This is the destination directory for the SysSpeed mainprogram"
  76.     )
  77. )
  78.  
  79. (set #where-datas "Where would you like to install Datas for SysSpeed ?")
  80.  
  81. (set #where-datas-help
  82.     (cat
  83.         "This is the destination directory of Datas for SysSpeed!"
  84.     )
  85. )
  86.  
  87. (set #where-doc "Where would you like to install the Documentations?")
  88.  
  89. (set #install-exit
  90.     (cat
  91.         "Thank you for installing SysSpeed ..."
  92.     )
  93. )
  94.  
  95. (set #install-start
  96.     (cat
  97.         "\nWelcome to SysSpeed installation utility!\n\n"
  98.         "Written and performed by f0X/AD!\n"
  99.     )
  100. )
  101.  
  102. ;===[ German Documentation ]=================================================
  103.  
  104. (if (= @language "deutsch")
  105.  (
  106. (set languages-default 2)
  107.  
  108. (set #bad-kick "Man benötigt Kickstart 2.04 oder höher, um SysSpeed benutzen zu können!")
  109.  
  110. (set #copy-main "Kopiere SysSpeed...")
  111.  
  112. (set #copy-doc "Kopiere Dokumentation...")
  113.  
  114. (set #copy-powerpacker-library "Kopiere powerpacker.library ins Libs: ...")
  115.  
  116. (set #copy-boards-library "Kopiere powerpacker.library ins Libs: ...")
  117.  
  118. (set #copy-xpkmaster-library "Kopiere xkpmaster.library ins Libs: ...")
  119.  
  120. (set #copy-shri-library "Kopiere shri.library ins Libs:Compressors/ ...")
  121.  
  122. (set #copy-fonts "Kopiere XEN Zeichensatz ins Fonts: ...")
  123.  
  124. (set #install-select
  125.     (cat
  126.         "Bitte wähle die einzelnen Teile des SysSpeed's, aus die"
  127.         " Du installieren möchtest:"
  128.     )
  129. )
  130.  
  131. (set #doc-select
  132.     (cat
  133.         "Bitte wähle die Dokumentationen aus die Du installieren"
  134.         " möchtest:"
  135.     )
  136. )
  137.  
  138. (set #languages-select "\nWelche Sprachen sollen installiert werden?")
  139.  
  140. (set #languages-select-help
  141.     (cat
  142.         "Bitte suche die Sprache für SysSpeed aus, die "
  143.         " in Dein Locale: Verzeichnis kopiert werden soll!"
  144.     )
  145. )
  146.  
  147. (set #item-main "SysSpeed Hauptprogramm")
  148.  
  149. (set #item-datas "SysSpeed Datenfiles")
  150.  
  151. (set #item-doc "Anleitung")
  152.  
  153. (set #item-locale "Locale")
  154.  
  155. (set #item-libraries "Libraries")
  156.  
  157. (set #item-fonts "XEN Zeichensatz")
  158.  
  159. (set #where-main "Wohin möchtest Du SysSpeed installieren?")
  160.  
  161. (set #where-main-help
  162.     (cat
  163.         "Dies ist das Zielverzeichnis von SysSpeed."
  164.     )
  165. )
  166.  
  167. (set #where-datas "Wohin möchtest Du die Daten von SysSpeed installieren?")
  168.  
  169. (set #where-datas-help
  170.     (cat
  171.         "Dies ist das Zielverzeichnis, von den daten die das"
  172.         " SysSpeed benötigt!"
  173.     )
  174. )
  175.  
  176. (set #where-doc "Wohin möchtest Du die Dokumentation installieren?")
  177.  
  178. (set #install-exit
  179.     (cat
  180.         "Vielen Dank für die Installation von SysSpeed ..."
  181.     )
  182. )
  183.  
  184. (set #install-start
  185.     (cat
  186.         "\nWillkommen zur SysSpeed Installation!\n\n"
  187.         "Geschrieben von f0X/AD!\n"
  188.     )
  189. )
  190.  
  191.  )
  192. )
  193.  
  194.  
  195. ;============================== PROGRAM-START================================
  196.  
  197. (set @default-dest "")
  198.  
  199. ; Check Kickstart (>= v2.0) Version.
  200.  
  201. (if (< (/ (getversion) 65536) 37)
  202.     (abort #bad-kick)
  203. )
  204.  
  205. (message #install-start)
  206.  
  207. (set install-default 31)
  208.  
  209. (if (NOT (exists "Fonts:XEN" (noreq)))
  210.     (set install-default (BITOR install-default 32))
  211. )
  212.  
  213. (welcome)
  214.  
  215. (set install-files
  216.     (askoptions
  217.         (prompt    #install-select)
  218.         (help    #install-select-help "\n\n" @askoptions-help)
  219.         (choices
  220.             #item-main
  221.             #item-datas
  222.             #item-doc
  223.             #item-locale
  224.             #item-libraries
  225.             #item-fonts
  226.         )
  227.         (default install-default)
  228.     )
  229. )
  230.  
  231. (set startup-files 0)
  232.  
  233. (if (BITAND install-files 1)
  234.     (
  235.     (set main-dest
  236.         (askdir
  237.             (prompt    #where-main)
  238.             (help    #where-main-help "\n\n" @askdir-help)
  239.             (default "SYS:")
  240.             )
  241.         )
  242.     )
  243. )
  244.  
  245. (if (BITAND install-files 2)
  246.     (set datas-dest
  247.         (askdir
  248.             (prompt    #where-datas)
  249.             (help    #where-datas-help "\n\n" @askdir-help)
  250.             (default "SYS:")
  251.         )
  252.     )
  253. )
  254.  
  255. ; Check + DefaultSet + Request Of Documentation(s)
  256.  
  257. (if (BITAND install-files 4)
  258.     (
  259.         (if (= @LANGUAGE "deutsch")
  260.             (set doc-default 2)
  261.             (set doc-default 1)
  262.         )
  263.         (set doc-files
  264.             (askoptions
  265.                 (prompt    #doc-select)
  266.                     (help    #doc-select-help "\n\n" @askoptions-help)
  267.                     (choices
  268.                         "SysSpeed... English"
  269.                         "SysSpeed... Deutsch"
  270.                     )
  271.                 (default doc-default)
  272.             )
  273.         )
  274.         (set doc-dest
  275.             (askdir
  276.                 (prompt    #where-doc)
  277.                 (help    @askdir-help)
  278.                 (default "SYS:")
  279.             )
  280.         )
  281.     )
  282. )
  283.  
  284. (if (AND (BITAND install-files 8) (= (exists "Locale:") 2))
  285.     (set    languages
  286.         (askoptions
  287.             (prompt    #languages-select)
  288.             (help    #languages-select-help "\n\n" @askoptions-help)
  289.             (choices
  290.                 "English"
  291.                 "Deutsch"
  292.             )
  293.             (default languages-default)
  294.         )
  295.     )
  296. )
  297.  
  298.  
  299. ;========================== COPY STARTS HERE ===============================
  300.  
  301. ; Copy SysSpeed MainProgram
  302.  
  303. (if (BITAND install-files 1)
  304.     (
  305.         (copyfiles
  306.             (prompt #copy-main)
  307.             (source "SysSpeed")
  308.             (dest main-dest)
  309.             (files)
  310.             (infos)
  311.         )
  312.     (delete (tackon main-dest ".info"))
  313.     )
  314. )
  315.  
  316. (complete 14)
  317.  
  318. ; Copy DataFiles
  319.  
  320. (if (BITAND install-files 2)
  321.     (
  322.         (copyfiles
  323.             (prompt #copy-datas)
  324.             (source "SysSpeedData")
  325.             (dest (tackon datas-dest "SysSpeedData"))
  326.             (all)
  327.         )
  328.     )
  329. )
  330.  
  331. (complete 28)
  332.  
  333.  
  334. ;Copy selected Documentations
  335.  
  336. (if (BITAND install-files 4)
  337.     (
  338.         (set n 0)
  339.         (while
  340.             (set doc
  341.                 (select n
  342.                     "SysSpeed_eng.guide"
  343.                     "SysSpeed_ger.guide"
  344.                     ""
  345.                 )
  346.             )
  347.             (
  348.                 (if (IN doc-files n)
  349.                     (
  350.                         (if (exists (tackon "" doc))
  351.                             (copyfiles
  352.                                 (prompt #copy-doc)
  353.                                 (source (tackon "" doc))
  354.                                 (dest doc-dest)
  355.                                 (infos)
  356.                             )
  357.                         )
  358.                     )
  359.                 )
  360.                 (set n (+ n 1))
  361.             )
  362.         )
  363.     (delete (tackon doc-dest ".info"))
  364.     )
  365. )
  366.  
  367. (complete 42)
  368.  
  369. ; Copy catalog files
  370.  
  371. (if (and (BITAND install-files 8) (= (exists "Locale:") 2))
  372.     (
  373.         (set n 0)
  374.         (while
  375.             (set language
  376.                 (select n
  377.                     "English"
  378.                     "Deutsch"
  379.                     ""
  380.                 )
  381.             )
  382.             (
  383.                 (if (IN languages n)
  384.                     (if (<> 0 n)   ; No catalog for english strings...
  385.                         (
  386.                             (set catalogs (tackon "Locale/Catalogs" language))
  387.                             (set destination (tackon "Locale:Catalogs" language))
  388.                             (makedir destination)
  389.                             (if (exists (tackon catalogs "SysSpeed.catalog"))
  390.                                 (copylib
  391.                                     (prompt #copy-catalog)
  392.                                     (source (tackon catalogs "SysSpeed.catalog"))
  393.                                     (dest destination)
  394.                                 )
  395.                             )
  396.                         )
  397.                     )
  398.                 )
  399.                 (set n (+ n 1))
  400.             )
  401.         )
  402.     )
  403. )
  404.  
  405.  
  406. ;Copy libraries to libs:
  407.  
  408. (if (BITAND install-files 16)
  409.     (
  410.         (copylib
  411.             (prompt #copy-powerpacker-library)
  412.             (source "Libs/powerpacker.library")
  413.             (dest "Libs:")
  414.         )
  415.         (complete 25)
  416.         (copylib
  417.             (prompt #copy-boards-library)
  418.             (source "Libs/boards.library")
  419.             (dest "Libs:")
  420.         )
  421.         (complete 50)
  422.         (copylib
  423.             (prompt #copy-xpkmaster-library)
  424.             (source "Libs/xpkmaster.library")
  425.             (dest "Libs:")
  426.         )
  427.         (complete 75)
  428.         (copylib
  429.             (prompt #copy-shri-library)
  430.             (source "Libs/compressors/xpkshri.library")
  431.             (dest "Libs:compressors")
  432.         )
  433.     )
  434. )
  435.  
  436. (complete 90)
  437.  
  438. (if (BITAND install-files 32)
  439.     (
  440.         (copyfiles
  441.             (prompt #copy-fonts)
  442.             (source "Fonts")
  443.             (dest "Fonts:")
  444.             (all)
  445.             (fonts)
  446.         )
  447.     )
  448. )
  449.  
  450. (complete 100)
  451.  
  452. (EXIT #install-exit)
  453.  
  454.